package com.example.gateway.designPattern.simpleFactory.cgc;

import com.example.gateway.designPattern.simpleFactory.Pizza;
import com.example.gateway.designPattern.simpleFactory.gcfs.BjcPizza;
import com.example.gateway.designPattern.simpleFactory.gcfs.LdcPizza;
import com.example.gateway.designPattern.simpleFactory.gcfs.LdpPizza;

/**
 * @ClassName: BjPizzaFactory
 * @Description:
 * @Author: YourName
 * @Date: 2025/1/2
 */

public class BjPizzaFactory implements AbstractFactory{
    @Override
    public Pizza getBjPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")) {
            pizza = new BjcPizza();
        }else if (orderType.equals("pepper")) {
            pizza = new BjcPizza();
        }
        return pizza;
    }

    @Override
    public Pizza getLdPizza(String orderType) {
        return null;
    }
}
